export const enum DataType {
  Text = 'Text',
  Table = 'Table',
  Code = 'Code'
}

export interface DataText {
  dataType: DataType.Text
  data: string
}

export interface DataTable {
  dataType: DataType.Table
  data: Array<Record<string, string>>
}

export interface DataCode {
  dataType: DataType.Code
  data: string
  language: string
}

export type DataItem = DataText | DataTable | DataCode

export const data: Array<DataItem> = [
  {
    dataType: DataType.Text,
    data: `这是第一个标题测试内容：这是第一个标题测试内容：`
  },
  {
    dataType: DataType.Table,
    data: [
      {
        "productId": "100801",
        "productName": "其他ICT业务",
        "groupCode": "294",
        "provinceProductName": "其他ICT业务",
        "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "66007440001",
          "productName": "天翼云监控",
          "groupCode": "6600744000",
          "provinceProductName": "天翼云监控",
          "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "6600050000",
          "productName": "天翼高清（集约）",
          "groupCode": "6600050000",
          "provinceProductName": "天翼高清（集约）",
          "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "6600061000",
          "productName": "云主机",
          "groupCode": "6600061000",
          "provinceProductName": "云主机",
          "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "6600062000",
          "productName": "云存储",
          "groupCode": "6600062000",
          "provinceProductName": "云存储",
          "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "101057",
          "productName": "智慧社区平台",
          "groupCode": "557",
          "provinceProductName": "智慧社区平台",
          "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "551017",
          "productName": "其他ICT业务",
          "groupCode": "294",
          "provinceProductName": "天翼安全专线",
          "desc": "测试环境不请求大模型,固定返回!"
      },
      {
          "productId": "6620652000",
          "productName": "天翼云眼",
          "groupCode": "6620652000",
          "provinceProductName": "天翼云眼",
          "desc": "测试环境不请求大模型,固定返回!"
      }
    ]
  },
  {
    dataType: DataType.Code,
    data: `
        // Using require
        const hljs = require('highlight.js');

        // Using ES6 import syntax
        import hljs from 'highlight.js';
    `,
    language: 'javascript',
  }
]